<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <% if(!article){%>
      <form class="" action="/admin/artupload" method="post">
        <input type="text" name="title" placeholder="title" value=""><br>
        <textarea name="text" rows="8" cols="80"></textarea><br>
        <input type="text" name="author" placeholder="author" value=""><br>
        <input type="submit" name="" value="submit">
      </form>
    <%} else{%>
      <form class="" action="/admin/artupdate/<%=article.id%>" method="post">
        <input type="hidden" name="id" value="<%=article.id%>">
        <input type="text" name="title" placeholder="title" value="<%=article.title%>"><br>
        <textarea name="text" rows="8" cols="80"><%=article.text%></textarea><br>
        <input type="text" name="author" placeholder="author" value="<%=article.author%>"><br>
        <input type="submit" name="" value="submit">
      </form>
    <%}%>
  </body>
</html>
